package com.ruoyi.cinema.service.impl;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.cinema.mapper.SchedulePromoCardInfoMapper;
import com.ruoyi.cinema.domain.SchedulePromoCardInfo;
import com.ruoyi.cinema.service.ISchedulePromoCardInfoService;

/**
 * 排期优惠卡信息Service业务层处理
 *
 * @author HHAOYU
 * @date 2020-12-13
 */
@Service
public class SchedulePromoCardInfoServiceImpl extends ServiceImpl<SchedulePromoCardInfoMapper, SchedulePromoCardInfo> implements ISchedulePromoCardInfoService  {
    @Autowired
    private SchedulePromoCardInfoMapper schedulePromoCardInfoMapper;

    /**
     * 查询排期优惠卡信息
     *
     * @param id 排期优惠卡信息ID
     * @return 排期优惠卡信息
     */
    @Override
    public SchedulePromoCardInfo selectSchedulePromoCardInfoById(Long id)
    {
        return schedulePromoCardInfoMapper.selectSchedulePromoCardInfoById(id);
    }

    /**
     * 查询排期优惠卡信息列表
     *
     * @param schedulePromoCardInfo 排期优惠卡信息
     * @return 排期优惠卡信息
     */
    @Override
    public List<SchedulePromoCardInfo> selectSchedulePromoCardInfoList(SchedulePromoCardInfo schedulePromoCardInfo)
    {
        return schedulePromoCardInfoMapper.selectSchedulePromoCardInfoList(schedulePromoCardInfo);
    }

    /**
     * 新增排期优惠卡信息
     *
     * @param schedulePromoCardInfo 排期优惠卡信息
     * @return 结果
     */
    @Override
    public int insertSchedulePromoCardInfo(SchedulePromoCardInfo schedulePromoCardInfo)
    {
        return schedulePromoCardInfoMapper.insertSchedulePromoCardInfo(schedulePromoCardInfo);
    }

    /**
     * 修改排期优惠卡信息
     *
     * @param schedulePromoCardInfo 排期优惠卡信息
     * @return 结果
     */
    @Override
    public int updateSchedulePromoCardInfo(SchedulePromoCardInfo schedulePromoCardInfo)
    {
        return schedulePromoCardInfoMapper.updateSchedulePromoCardInfo(schedulePromoCardInfo);
    }

    /**
     * 批量删除排期优惠卡信息
     *
     * @param ids 需要删除的排期优惠卡信息ID
     * @return 结果
     */
    @Override
    public int deleteSchedulePromoCardInfoByIds(Long[] ids)
    {
        return schedulePromoCardInfoMapper.deleteSchedulePromoCardInfoByIds(ids);
    }

    /**
     * 删除排期优惠卡信息信息
     *
     * @param id 排期优惠卡信息ID
     * @return 结果
     */
    @Override
    public int deleteSchedulePromoCardInfoById(Long id)
    {
        return schedulePromoCardInfoMapper.deleteSchedulePromoCardInfoById(id);
    }
}
